public class OuterClass1 {
    public int data1 = 1;
    public int data2 = 2;
    public static int data3 = 3;
    static class InnerClass{
        public int data1 = 111;
        public int data4 = 4;
        public int data5 = 5;
        public static int data6 = 6;
        public void test(){
            OuterClass1 out = new OuterClass1();
            System.out.println(out.data1);
            System.out.println("内部类方法");
        }
    }
    public void test(){
        InnerClass inner = new InnerClass();
        System.out.println(inner.data4);
        System.out.println("外部类方法");
    }
}
